more efficence way of doing the thing