Change name of getPreviousElement method