trying make code clearer