working on isOlder function