simple function to make live easyer