call through submit method