clean_value checks variable types by gettype now