removed unnecessary popfirst