Adding eps fix function