@accepts decorator to check arguments types