added code to the empty functions