added simple way function