bug fixed - location not being stored