functions to handle environement and animals