switched the order of the methods sections