getting rid of reflection