need pop instead of shift