sanitized the inputs a bit more