started on grape inspired param function