added dtypes for speed up
added time module for checking total time