better formating inputs