solved time problem