changed type syntax in frontend