updated methods,timeValdity boolean value introduced