this seemed like an easy function to start with