sanitize the input
minor fix