alternative function from easy difficulty