added some filters for input