checks for positive input