changed input to interface{}