small improvement in casting