fixed removeItem method and added more variablility