working on parsing input