gets rid of code duplication