creating a little help for all the code repetition