rewrite store using scala