update to ifelse conditional for more options instead of terinary operator