Fixed front method

added const modifier to it