fixed return type of popcommit