changing to pattern as described by angularfire-seed