added doyung's function
now both of our stuff is together for real