basic function done, but without css