improving helper functions' readibility