looked into case functions with Maybe options