input details. Future check and sort functions