added types to input params