if users accidentally switch the order of the details it crashes the project. Could add exception handlers. 